function ObjHandle = plotGroupDelay(main, filterID, axes, color)

filterToPlot = ['filter' num2str(filterID)];

sys = main.(filterToPlot).transferFunction;

[P,Z] = pzmap(sys);
[Y,X] = getGroupDelay(Z,P,main.template.wa);

ObjHandle = plot(axes,X,Y, 'Color',color, 'LineWidth',2);

end